/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const router = {
  hidden: false,
  path: '/deliveryManagement',
  component: Layout,
  redirect: '/deliveryManagement/goodsTakeOutBill-list',
  meta: {
    title: '发货管理',
    icon: 'guide',
    roles: ['BusinessModuleManagement.DeliveryManagement']
  },
  children: [
    {
      hidden: false,
      path: 'goodsTakeOutBill-list',
      name: 'DeliveryManagementGoodsTakeOutBill',
      component: () => import('@/views/deliveryManagement/goodsTakeOutBill/list'),
      meta: { title: '领料出仓', icon: '', roles: ['GoodsTakeOutBillManagement.GoodsTakeOutBill'] }
    },
    {
      hidden: false,
      path: 'goodsTakeInBill-list',
      name: 'DeliveryManagementGoodsTakeInBill',
      component: () => import('@/views/deliveryManagement/goodsTakeInBill/list'),
      meta: { title: '领料进仓', icon: '', roles: ['GoodsTakeInBillManagement.GoodsTakeInBill'] }
    },
    {
      hidden: false,
      path: 'goodsOutBill-list',
      name: 'DeliveryManagementGoodsOutBill',
      component: () => import('@/views/deliveryManagement/goodsOutBill/list'),
      meta: { title: '出库单', icon: '', roles: ['GoodsOutBillManagement.GoodsOutBill'] }
    }
  ]
}

export default router
